package me.ereach;

public class Utils {
    public static <T extends Comparable<T>> T max(T first, T second) {
        return (first.compareTo(second) < 0) ? second : first;
    }

    public static <T extends Comparable<T>> T min(T first, T second) {
        return (first.compareTo(second) < 0) ? first : second;
    }

    public static void printPerson(Queue<? extends Person> persons) {
        System.out.println(persons);
    }
}
